#!/bin/bash

echo "Running git pre-commit hook"

./gradlew ktlintFormat

RESULT=$?

# return 1 exit code if running checks fails
[ $RESULT -ne 0 ] && exit 1
exit 0
